<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/react.development.js"></script>
    <script src="./lib/react-dom.development.js"></script>
    <script src="./lib/babel.min.js"></script>
</head>

<body>
    <div id="root"></div>
</body>
<script type="text/babel">
    const root = ReactDOM.createRoot(document.querySelector("#root"));
    let width = '600';
    let height = '300';

    let styles = {
        width: 800,
        height: 500,
        bgatguigu:'red'
    }
    root.render((
        <div>
            <table border='1' width={width} height={height}>
                <thead>
                    <tr>
                        <th>id</th>
                        <th>username</th>
                        <th>age</th>
                    </tr>
                </thead>

                <tbody>
                    <tr>
                        <td>1</td>
                        <td>atguigu</td>
                        <td>18</td>
                    </tr>
                </tbody>
            </table>

            <table border='1' width={styles.width} height={styles.height}>
                <thead>
                    <tr>
                        <th>id</th>
                        <th>username</th>
                        <th>age</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>atguigu</td>
                        <td>18</td>
                    </tr>
                </tbody>
            </table>

            <table border='1' {...styles}>
                <thead>
                    <tr>
                        <th>id</th>
                        <th>username</th>
                        <th>age</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>atguigu</td>
                        <td>18</td>
                    </tr>
                </tbody>
            </table>
        </div>
    ))
</script>

</html>